import request from '@/utils/request'

// 查询模拟配置列表
export function listSimulateConf(query) {
  return request({
    url: '/binance/simulateConf/list',
    method: 'get',
    params: query
  })
}

// 测试
export function getSimulateTest(id) {
  return request({
    url: '/binance/simulateConf/test?id=' + id,
    method: 'get'
  })
}

// 查询模拟配置详细
export function getSimulateConf(id) {
  return request({
    url: '/binance/simulateConf/' + id,
    method: 'get'
  })
}

// 新增模拟配置
export function addSimulateConf(data) {
  return request({
    url: '/binance/simulateConf',
    method: 'post',
    data: data
  })
}

// 修改模拟配置
export function updateSimulateConf(data) {
  return request({
    url: '/binance/simulateConf',
    method: 'put',
    data: data
  })
}

// 删除模拟配置
export function delSimulateConf(id) {
  return request({
    url: '/binance/simulateConf/' + id,
    method: 'delete'
  })
}
